<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/head::common_head('首页')"></head>
<body>
	<div class="main-content">
		<form id="submitForm" class="form-horizontal">
			<input name="id" type="hidden" class="form-control" id="id"
				th:value="${entity.id}" /> <input name="signVersion" type="hidden"
				class="form-control" id="signVersion"
				th:value="${entity.signVersion}" />
			<table class="table table-bordered table-hover no-margins">
				<tbody>
					<tr>
						<td class="gray-bg text-right" width="15%">签名名称<span
							style="color: red;">*</span>：
						</td>
						<td width="35%"><input class="form-control" id="signName"
							name="signName" required th:value="${entity.signName}"
							th:disabled="${entity.modify}" /></td>
						<td class="gray-bg text-right" width="15%">签名编码<span
							style="color: red;">*</span>：
						</td>
						<td width="35%"><input class="form-control" id="signCode"
							name="signCode" required th:value="${entity.signCode}"
							th:disabled="${entity.modify}" /></td>
					</tr>
					<tr>
						<td class="gray-bg text-right">是否签名<span style="color: red;">*</span>：
						</td>
						<td><select class="form-control" id="signFlag">
								<option value='0'>否(只盖章不签名)</option>
								<option value='1'>是(盖章+签名)</option>
						</select></td>
						<td class="gray-bg text-right">签名类型：</td>
						<td><select class="form-control" id="signAuth"
							name="signAuth">
								<option value=''>请选择签名类型</option>
								<option th:selected="${entity.signAuth eq option.code}"
									th:each="option : ${signAuths}" th:value="${option.code}"
									th:text="${option.name}"></option>
						</select></td>
					</tr>
					<tr>
						<td class="gray-bg text-right">密钥类型：</td>
						<td><select class="form-control" id="keystoreType"
							name="keystoreType">
								<option value=''>请选择密钥类型</option>
								<option th:selected="${entity.keystoreType eq option.code}"
									th:each="option : ${keystoreTypes}" th:value="${option.code}"
									th:text="${option.name}"></option>
						</select></td>
						<td class="gray-bg text-right">密钥密码：</td>
						<td><input class="form-control" id="keystorePassword"
							name="keystorePassword" required
							th:value="${entity.keystorePassword}" /></td>
					</tr>
					<tr>
						<td class="gray-bg text-right">密钥文件：</td>
						<td colspan="3">
							<div class="input-group">
								<span class="input-group-btn">
									<button class="btn btn-default btn-info" type="button"
										id="keystoreFile">文件上传</button>
								</span> <input style="width: 600px;" type="text" disabled="disabled"
									class="form-control" id="keystoreUrl" name="keystoreUrl"
									th:value="${entity.keystoreUrl}" />
								<span class="input-group-addon"><a th:href="${entity.keystorePath}" id="keystorePath" target='_blank'>下载</a></span>
							</div>
						</td>
					</tr>
					<tr>
						<td class="gray-bg text-right">加密标准：</td>
						<td><select class="form-control" id="cryptoStandard"
							name="cryptoStandard">
								<option value=''>请选择加密标准</option>
								<option th:selected="${entity.cryptoStandard eq option.code}"
									th:each="option : ${cryptoStandards}" th:value="${option.code}"
									th:text="${option.name}"></option>
						</select></td>
						<td class="gray-bg text-right">加密算法：</td>
						<td><select class="form-control" id="digestAlgorithm"
							name="digestAlgorithm">
								<option value=''>请选择加密算法</option>
								<option th:selected="${entity.digestAlgorithm eq option.code}"
									th:each="option : ${digestAlgorithms}"
									th:value="${option.code}" th:text="${option.name}"></option>
						</select></td>
					</tr>
					<tr>
						<td class="gray-bg text-right">图章类型：</td>
						<td><select class="form-control" id="certificationLevel"
							name="certificationLevel">
								<option value=''>请选择图章类型</option>
								<option
									th:selected="${entity.certificationLevel eq option.code}"
									th:each="option : ${certificationLevels}"
									th:value="${option.code}" th:text="${option.name}"></option>
						</select></td>
						<td class="gray-bg text-right">展示形式：</td>
						<td><select class="form-control" id="renderingMode"
							name="renderingMode">
								<option value=''>请选择展示形式</option>
								<option th:selected="${entity.renderingMode eq option.code}"
									th:each="option : ${renderingModes}" th:value="${option.code}"
									th:text="${option.name}"></option>
						</select></td>
					<tr>
						<td class="gray-bg text-right">图章文件：</td>
						<td colspan="3">
							<div class="input-group">
								<div class="layui-upload">
									<button type="button" class="layui-btn" id="imageFile">上传图片</button>
									<div class="layui-upload-list">
										<img class="layui-upload-img" id="imageDesc" th:src="${entity.imagePath}">
									</div>
								</div>
								<input style="width: 600px;" type="hidden" disabled="disabled" class="form-control" id="imageUrl" name="imageUrl" th:value="${entity.imageUrl}" />
							</div>
						</td>
					</tr>
				</tbody>
			</table>
			<br>
			<div class="row">
				<div class="col-sm-offset-5 col-sm-8 text-center">
					<button id="saveBtn" type="button" class="btn btn-sm btn-info">
						<i class="fa fa-info"></i> 保 存
					</button>
					<button id="submitBtn" type="submit" class="btn btn-sm btn-primary">
						<i class="fa fa-check"></i>提 交
					</button>
				</div>
			</div>
		</form>
	</div>
	<div th:include="common/script::common_script"></div>
	<div th:include="common/validate::validate_script"></div>
	<script type="text/javascript"
		th:src="@{/static/js/module/template/sign/edit.js}"></script>
</body>
</html>
